i2c: bcm2835: Use dev_dbg logging on transfer errors
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 19 Sep 2016 15:19:41 +0000 (17:19 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:00:01 +0000 (01:00 +0000)
commit385da03440781c03580bce9cb7bf84ecaad5b539
tree78ffa3e4e4190398efcc98c0650528be88a60410
parent84902980b5014339d1faaeee637b99bd2d6e4ed5
i2c: bcm2835: Use dev_dbg logging on transfer errors

Writing to an AT24C32 generates on average 2x i2c transfer errors per
32-byte page write. Which amounts to a lot for a 4k write. This is due
to the fact that the chip doesn't respond during it's internal write
cycle when the at24 driver tries and retries the next write.
Only a handful drivers use dev_err() on transfer error, so switch to
dev_dbg() instead.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/i2c/busses/i2c-bcm2835.c